USE [QuanLi]
GO

/****** Object:  Table [dbo].[NSNgheNghiep]    Script Date: 11/28/2011 08:35:49 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[NSNgheNghiep](
	[NgheNghiepId] [int] IDENTITY(1,1) NOT NULL,
	[NhanVienId] [int] NOT NULL,
	[NgayBatDau] [datetime] NOT NULL,
	[NgayKetThuc] [datetime] NULL,
	[CodeIdNgheNghiep] [int] NULL,
	[ChuyenNganhId] [int] NULL,
	[GhiChu] [nvarchar](200) NULL,
 CONSTRAINT [PK_NSNgheNghiep] PRIMARY KEY CLUSTERED 
(
	[NgheNghiepId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[NSNgheNghiep]  WITH CHECK ADD  CONSTRAINT [FK_NSNgheNghiep_NSNhanVien] FOREIGN KEY([NhanVienId])
REFERENCES [dbo].[NSNhanVien] ([NhanVienID])
GO

ALTER TABLE [dbo].[NSNgheNghiep] CHECK CONSTRAINT [FK_NSNgheNghiep_NSNhanVien]
GO


